<template>
  <el-scrollbar>
        <el-menu :default-openeds="['1', '3']"
        default-active="/sy"
        router
        >
          <el-sub-menu index="1">
            <template #title>
              <el-icon><message /></el-icon>菜单
            </template>
            <el-menu-item-group>
              <template #title>Group 1</template>
              <el-menu-item index="/sy">首页</el-menu-item>
              <el-menu-item index="/main">用户列表</el-menu-item>
              <el-menu-item index="/im">聊天室</el-menu-item>
              <el-menu-item index="/pratice">去刷题</el-menu-item>
            </el-menu-item-group>


          </el-sub-menu>

        </el-menu>
      </el-scrollbar>
</template>

<script>
import router from '@/router';
export default {
  name:"Aside",
  data() {
      const item = {
        date: '2016-05-02',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      };
      return {
        tableData: Array(20).fill(item)
      }
    },
    beforeMount(){
        router.push('/sy');
    },
}
</script>

<style scoped>

</style>